//设计图尺寸为750
import { Dimensions } from "react-native";

const width = Dimensions.get('window').width//拿到手机实际的尺寸
global.px2dp = (size) => size*width/750